package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.User_Role;
import org.springframework.stereotype.Service;

import java.util.*;

/**
 * @author moguai
 * @version 1.0
 * @date 2022/3/18 19:57
 */
@Service
public interface User_RoleService extends IService<User_Role> {
//    List<User_Role> SelectUser_Role(Integer user_id);
    void InsertUser_Role(Integer user_id,Integer role_id);
    void DeleteUser_Role(Integer user_id,Integer role_id);
    void DeleteUser_RoleByUser(Integer user_id);
    void DeleteUser_RoleByRole(Integer role_id);
    List<User_Role> SelectUser_RoleByUser(Integer user_id);
    List<User_Role> SelectUser_RoleByRole(Integer role_id);
}
